package com.malljelly.study.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.annotation.EnableJms;

import javax.jms.Queue;

/**
 * Created by 骑着蜗牛去旅行 on 2018/8/12.
 */

@Configuration
@EnableJms //开启jms
public class ActiveMQConfig {

    @Bean
    public Queue queue() {
        return new ActiveMQQueue("com.malljelly.study.msg.queue") ; //发送的队列名必须和接收的队列名一致
    }
}
